<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
 <head>
  <title>付款申请</title>
  <t:base type="jquery,easyui,tools,DatePicker,yongxin_css,mobile_css"></t:base>
 
 </head>
 <body  scroll="no">
		<div id="wrapper">
					<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" tiptype="1">
						<input id="id" name="fBillID" type="hidden" value="${payApplyBillPage.fBillID}">
						<div align="center" style="margin-top: 10px; font-weight: bold">
							<span style="font-family: Micorosoft; font-size: 20px;">付款申请</span>
						</div>
						<br />
						<table style="width: 80%;" align="center" cellpadding="6" cellspacing="1" class="formtable">
							<tr>
								<td>
									单据号：
								</td>
								<td>
									<input class="inputxt" value="${payApplyBillPage.fBillNo}">
								</td>
								<td>
									单据日期：
								</td>
								<td>
										<input class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"
										value="<fmt:formatDate value='${payApplyBillPage.FDate}' type="date" pattern="yyyy-MM-dd"/>">
								</td>
							</tr>
							<tr>
								<td>
									币别：
								</td>
								<td>
									<input class="inputxt" value="${payApplyBillPage.fBb}">
								</td>
								<td>
									付款类型：
								</td>
								<td>
									<input class="inputxt" value="${payApplyBillPage.fPayType}">
								</td>
							</tr>
							<tr>
								<td>
								            核算项目类别：
								</td>
								<td>
									<input class="inputxt" value="${payApplyBillPage.fCustomerType}">
								</td>
								<td>
									核算项目：
								</td>
								<td>
									<input class="inputxt" value="${payApplyBillPage.fCustomerName}">
								</td>
							</tr>
							<tr>
								<td>
									申请付款数量：
								</td>
								<td>
									<input class="inputxt" value="${payApplyBillPage.fApplyQuantity}">
								</td>
								<td>
									申请付款金额：
								</td>
								<td>
									<input class="inputxt" value="${payApplyBillPage.fApproveAmount}">
								</td>
							</tr>
							<tr>
								<td>
									付款理由：
								</td>
								<td>
									<input class="inputxt" value="${payApplyBillPage.fexplanation}">
								</td>
								<td>
									部门:
								</td>
								<td>
									<input class="inputxt" value="${payApplyBillPage.fDepartmentName}">
								</td>
							</tr>
							<tr>
								
								<td>
									业务员:
								</td>
								<td>
									<input class="inputxt" value="${payApplyBillPage.fEmployeeName}">
								</td>
								<td >
									制单人：
								</td>
								<td >
									<input class="inputxt" value="${payApplyBillPage.fBillMan}">
								</td>
							</tr>
							<tr>
								
								<td >
									付款方式:
								</td>
								<td colspan="3">
									<input class="inputxt" value="${payApplyBillPage.fText}">
								</td>
							</tr>
						<br/>
						</table>
						
					<div id="dlg-buttons" style="margin-left: 10%;margin-top: 10px;">
							<a href="#" class="easyui-linkbutton" iconCls="icon-ok"   id="check_btn">审批</a>  &nbsp;&nbsp;&nbsp;&nbsp;
							<a href="#" class="easyui-linkbutton" iconCls="icon-redo" id="uncheck_btn">驳回</a>
					</div>
				    </t:formvalid>
			</div>
					
	</body>
		 <script type="text/javascript">
  
        $("#check_btn").click(function() {
        	ajaxdoForm('payApplyCheckController.do?saveCheckIdea&id=${payApplyBillPage.fBillID}&no=${payApplyBillPage.fBillNo}','formobj');
        	$("#check_btn").hide();
        	$("#uncheck_btn").hide();
        });
        
        $("#uncheck_btn").click(function() {
        	ajaxdoForm('payApplyCheckController.do?saveUnCheckIdea&id=${payApplyBillPage.fBillID}&no=${payApplyBillPage.fBillNo}','formobj');
        	$("#check_btn").hide();
        	$("#uncheck_btn").hide();
        });
  
  </script>